﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EventDetailForm.aspx.cs"
    Inherits="FX.CC.Andon.WebSite.ReportManage.EventDetailForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>异常明细</title>
    <script src="../lib/boot.js" type="text/javascript"></script>
</head>
<body>
    <!--撑满页面-->
    <div class="mini-fit">
        <div id="datagrid1" class="mini-datagrid" style="width: 100%; height: 100%;" borderstyle="border:0" sizelist="[10,20,50,100]"
            pagesize="10">
            <div property="columns">
                <div type="indexcolumn">
                </div>
                <div field="EqCode" width="110" headeralign="center" allowsort="true">
                    设备编号
                </div>
                <div field="EqName" width="140" headeralign="center" allowsort="true">
                    设备名称
                </div>
                <div field="StartTime" width="130" headeralign="center" allowsort="true" dateformat="yyyy-MM-dd HH:mm:ss">
                    异常触发时间
                </div>
                <div field="EndTime" width="130" headeralign="center" allowsort="true" dateformat="yyyy-MM-dd HH:mm:ss">
                    异常解除时间
                </div>
                <div field="ElapsedTime" width="100" headeralign="center" allowsort="true">
                    持续时间（分钟）
                </div>
                <div field="ETypeName" width="90" headeralign="center" allowsort="true">
                    异常原因
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        mini.parse();
        var grid = mini.get("datagrid1");
        function SetData(data) {
            if (data.action == "view") {
                //跨页面传递的数据对象，克隆后才可以安全使用
                data = mini.clone(data);
                grid.setUrl("../service/ReportManageHandler.ashx?action=GetEventDetailList&Year=" + data.Year + "&Month=" + data.Month + "&EqID=" + data.EqID);
                grid.load();
            }
        }
        function CloseWindow(action) {
            if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
            else window.close();
        }
        function onCancel() {
            CloseWindow("close");
        }
    </script>
</body>
</html>
